import request from "@/utils/request";

// 查询医生工作站信息列表
export function getList(query) {
  return request({
    url: "/system/doctor/list",
    method: "get",
    params: query
  });
}
// 查询医生下拉列表
export function getDropdownList() {
  return request({
    url: "/system/doctor/dropdown/list",
    method: "get",
  });
}
// 新增方案
export function addDoctorPlan(data) {
  return request({
    url: "/system/doctor/addAll",
    method: "post",
    data: data,
  });
}
//修改前查询
export function doctorEdit(visitNum) {
  return request({
    url: "/system/doctor/edit/" + visitNum,
    method: "get",
  });
}
// 修改方案
export function updateDoctorPlan(data) {
  return request({
    url: "/system/doctor/editSave",
    method: "put",
    data: data,
  });
}
// 查询咨询方案信息
export function getDoctorReference(visitNum) {
  return request({
    url: "/system/doctor/reference/"+visitNum,
    method: "get",
  });
}
// 待诊断列表
export function diagnosisWait(query) {
  return request({
    url: "/system/doctor/diagnosis/wait",
    method: "get",
    params: query
  });
}
// 我的录入列表
export function diagnosisDetail(query) {
  return request({
    url: "/system/doctor/diagnosis/detail",
    method: "get",
    params: query
  });
}
// 我的录入明细
export function myDiagnosis(query) {
  return request({
    url: "/system/doctor/myDiagnosis",
    method: "get",
    params: query
  });
}
// 14-查询医生工作站中该就诊编号的医生诊断信息
export function myHistoryDiagnosis(visitNum) {
  return request({
    url: "/system/doctor/allVisitPlanBy/"+visitNum,
    method: "get",
  });
}
// 我的录入列表
export function diagnosisDetailInfo(query) {
  return request({
    url: "/system/doctor/diagnosis/detail/info",
    method: "get",
    params: query
  });
}
// 我的录入明细
export function myDiagnosisInfo(query) {
  return request({
    url: "/system/doctor/myDiagnosis/info",
    method: "get",
    params: query
  });
}

